#include "common.h"

int findComplement(int num);

int main()
{
	return 0;
}

int findComplement(int num)
{
	int top = 0;
	for (int i = num; i != 0; i -= i & -i)
		top = i;
	return ~num & (top - 1);
}
